package FactoryMethod;

public abstract class PenCore {
    public String color;//笔芯颜色

    public PenCore(String color){
        this.color = color;
    }

    public abstract void writeWord(String s);
}
